<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>010.0015.p11.Promise.then也是Promise</title>
    <script>

      // window.onload = function(){
      //   console.log('js执行完成 , window context 退出');
      // }
    </script>
</head>
<body>
    <div>
        <div id="showRespDataId"></div>
        <hr><br><hr>
        <div id="showAllNet"></div>
    </div>
</body>
<script>

let p1 = new Promise((resolve , reject)=>{
    resolve('fullfill')
})

let p2 = p1.then(value => console.log(value) ,
 reason => console.log(reason)
 )

 console.log(p1);
console.log(p2);

setTimeout(()=>{

    console.log(p1);
console.log(p2);

console.log(showAllNet); // 太神奇了，竟然可以这样写！！！直接用id的方式！
},10)

</script>
</html>